﻿@using MediaGarden.Models;
@{
    /* HTML5 video view
    */
    int width = Model.DisplayWidth;
    int height = Model.DisplayHeight;
    
    // TODO: Support various options
}
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"@if(width>0&&height>0){<text> width="@width" height="@height"</text>}>
<param name="URL" value="@Model.MediaUrl" />
<param name="autoStart" value="False" />
<embed src="@Model.MediaUrl"@if(width>0&&height>0){<text> width="@width" height="@height"</text>} type="application/x-mplayer2" autoStart="False" />
</object>